﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/UserLayout.Master" AutoEventWireup="true" CodeBehind="UpdateAvatar.aspx.cs" Inherits="DigitalAnts.User.UpdateAvatar" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="col-main">
												<div class="my-account"><div class="page-title">
    <h1>Thay đổi ảnh đại diện</h1>
</div>
     <div class="fieldset">
            <h2 class="legend">Thay đổi ảnh đại diện</h2>
            <ul class="form-list">
                    <li class="fields">
                        <div class="customer-name">
                    <div class="field name-firstname">
                                    <div class="input-box" id="radio">
                                        <asp:RadioButton ID="rdOld" runat="server" GroupName="Avatar" Checked="true" Text="Dùng ảnh cũ"/>
                                    </div>

                    </div>
                    <div class="field name-lastname">
                                    <div class="input-box" id="radio">
                                        <asp:RadioButton ID="rdNew" runat="server" GroupName="Avatar" Text="Dùng ảnh mới" />
                                    </div>

                    </div>
                    </li>
                    <li class="fields">
                        <div class="customer-name">
                    <div class="field">
                                    <div class="input-box">
                                        <div class="avatar"><asp:Image ID="imgOldImage" runat="server" CssClass="avatar"/></div>
                                    </div>

                    </div>
                    <div class="field">
                                    <div class="input-box">
                                        <div class="avatar"><asp:Image ID="imgNewImage" runat="server" CssClass="avatar" ImageUrl="../resource/user_avatar/defaultAvatar.png" /></div>
                                    </div>

                    </div>
                </div>
                    </li>
                    <li class="fields">
                        <div class="customer-name">
                    <div class="field name-firstname">
                                    <div class="input-box">
                                       <a>Link</a>
                                    </div>

                    </div>
                    <div  class="field name-lastname">
                                    <div class="input-box">
                                        <asp:FileUpload ID="fulavatar" runat="server" class="input-text required-entry" />
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="fulavatar"
            ErrorMessage="Invalid Image File" Display="Dynamic"
            ValidationExpression=
            "^([0-9a-zA-Z_\-~ :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$">
            </asp:RegularExpressionValidator> 
                                    </div>

                    </div>
                </div>
                    </li>
                            </ul>
            
        </div>
    
   <div class="buttons-set">
        <asp:Button ID="btnSubmit" runat="server" Text="Xác nhận" 
            onclick="btnSubmit_Click"/>
    </div>
</div>					</div>
</asp:Content>
